/**
 * 分包商表 api 封装
 *
 * @Author:    ASDFH
 * @Date:      2024-07-30 17:14:53
 * @Copyright  sdfgh
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const subcontractorInfoApi = {

  /**
   * 分页查询  @author  ASDFH
   */
  queryPage: (param) => {
    return postRequest('/subcontractorInfo/queryPage', param);
  },

  /**
   * 增加  @author  ASDFH
   */
  add: (param) => {
    return postRequest('/subcontractorInfo/add', param);
  },

  /**
   * 修改  @author  ASDFH
   */
  update: (param) => {
    return postRequest('/subcontractorInfo/update', param);
  },


  /**
   * 删除  @author  ASDFH
   */
  delete: (id) => {
    return getRequest(`/subcontractorInfo/delete/${id}`);
  },

  /**
   * 批量删除  @author  ASDFH
   */
  batchDelete: (idList) => {
    return postRequest('/subcontractorInfo/batchDelete', idList);
  },
  //发票类别
  //http://10.10.1.27:1024/support/dict/value/query
  getfapType: () => {
    return postRequest('/support/dict/value/query', {
      dictKeyId: 4,
      pageNum: 1,
      pageSize: 500
    });
  },
  getjiesuanType: () => {
    return postRequest('/support/dict/value/query', {
      dictKeyId: 5,
      pageNum: 1,
      pageSize: 500
    });
  },

  getqiyeType: () => {
    return postRequest('/support/dict/value/query', {
      dictKeyId: 6,
      pageNum: 1,
      pageSize: 500
    });
  },
};
